package fyf.com.carddesign.Dao;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.Unique;
import org.greenrobot.greendao.annotation.Generated;

import java.io.Serializable;

/**
 * 管理员卡片类
 * Created by Admin on 2017/10/20.
 */
@Entity
public class Card implements Serializable{
    static final long serialVersionUID = 42L;
    //卡片id（唯一id）
    @Id(autoincrement = true)
    public Long id;
    //卡片名字
    public String name;
    //一些说明
    public String text;
    //添加日期
    public String add_date;
    //是否失效
    public boolean is_over_date;//true 失效了，false尉氏效
    //是否使用了卡片
    public boolean is_use;//true:使用 false：没使用
    @Generated(hash = 2125331110)
    public Card(Long id, String name, String text, String add_date,
            boolean is_over_date, boolean is_use) {
        this.id = id;
        this.name = name;
        this.text = text;
        this.add_date = add_date;
        this.is_over_date = is_over_date;
        this.is_use = is_use;
    }
    @Generated(hash = 52700939)
    public Card() {
    }
    public Long getId() {
        return this.id;
    }
    public void setId(Long id) {
        this.id = id;
    }
    public String getName() {
        return this.name;
    }
    public void setName(String name) {
        this.name = name;
    }
    public String getText() {
        return this.text;
    }
    public void setText(String text) {
        this.text = text;
    }
    public String getAdd_date() {
        return this.add_date;
    }
    public void setAdd_date(String add_date) {
        this.add_date = add_date;
    }
    public boolean getIs_over_date() {
        return this.is_over_date;
    }
    public void setIs_over_date(boolean is_over_date) {
        this.is_over_date = is_over_date;
    }
    public boolean getIs_use() {
        return this.is_use;
    }
    public void setIs_use(boolean is_use) {
        this.is_use = is_use;
    }




}
